home *** CD-ROM | disk | FTP | other *** search
/ PC Format 25 / PCFormat 1993-10.iso / UTILS.ZIP / CHKEX.BAT next >
DOS Batch File  |  1991-03-22  |  541b  |  14 lines

  1. @echo off
  2. if "%1"=="" goto help
  3. if exist %1 echo %1 is a diskfile
  4. if not exist %1 if not exist %1\nul echo %1 does not exist
  5. if not exist %1 if exist %1\nul if exist %1\*.* echo %1 is a non-empty subdirectory
  6. if not exist %1 if exist %1\nul if not exist %1\*.* echo %1 is an empty subdirectory
  7. goto end
  8. :help
  9. echo CHKEX by Jim Groeneveld, NL, 21/3-91.
  10. echo Checks existence (or not) of some name as a disk file or subdirectory.
  11. echo Syntax: CHKEX name
  12. echo Output: textual report of existence, adapt for specific purposes.
  13. :end
  14.